Repository navigation
Add checked anything values and Boolean aliases to Ny and Matrix - #22
Merged
Merged
Conversation
# Conflicts: # docs/design/README.md # matrix/docs/next-version-findings.md
Preserve annotation and NILData findings while carrying the current master integration through the stacked pull request. TypeScript checking and all 122 extension unit tests pass.
Preserve switch and NILData findings while propagating the current master integration through the stacked pull request. TypeScript checking and all 124 extension unit tests pass.
# Conflicts: # docs/design/README.md # matrix/docs/next-version-findings.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add initialized, runtime-changing
anythingvalues to Ny and Matrix. Boxes preserve their exact concrete type across assignments, arguments, returns, fields, arrays, and caller references. Checked casts report the requested and stored types;anything_is<T>tests identity andnil.std.core.try_as<T>returnsOption<T>for expected mismatches. Static aliases retain one compile-time type, and ownership or borrowed storage cannot be erased through a box.Both languages accept
boolean/flagandyes/no. Numeric Boolean conversion and storage accept only 0 and 1; text conversions share the same accepted spellings across VM and native execution. Diagnostics explain initialization requirements, checked extraction, and invalid Boolean values. Completion, highlighting, debugger values, language references, and the findings document cover the new contracts.Validation also fixes native reference-cell GC retention after callee replacement, joined parallel-worker conversion errors, and a malformed-call parser crash. Native function values remain unsupported with an explicit diagnostic; VM function values are covered. Original-source locations after preprocessing remain documented follow-up work.
Validation: LLVM build; full CTest suite (528 passed, optional PostgreSQL integration skipped); 115 source route checks covering textual/binary NIL, interpreter bundles, JIT, AOT, rejected programs, and artifact preservation; 134 VS Code unit tests, extension type check, and production bundle.
This PR targets
master. Integration PR #21 brings in the already-reviewed annotations, switches, and nilbuild work; merging it first reduces this diff to the dynamic-value and Boolean changes.